package com.shop.shop_end.service;

import com.shop.shop_end.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.shop_end.utils.result.Result;
import com.shop.shop_end.vo.OrderVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2024-04-23
 */
public interface OrderService extends IService<Order> {

    Result addOneOrder(Order order);

    Result deleteOrderById(Long id);

    Result updateOrder(Order order);

    List<OrderVo> getAllOrder();

    public Order getOrderById(Long id);

    Order getOrderByOrderNum(String orderNum);

    Result setOrderStatus(Long orderId, String status);
}
